Skip to main content
Version: 1.x.x

UseSubmitOptionsType


import { UseSubmitOptionsType } from "@hyper-fetch/react"

Description

Defined in hooks/use-submit/use-submit.types.ts:21

Preview

type UseSubmitOptionsType<T> = {
bounce: boolean;
bounceTime: number;
bounceType: debounce | throttle;
deepCompare: boolean | typeof isEqual;
dependencyTracking: boolean;
disabled: boolean;
initialData: CacheValueType<ExtractResponse<T>, ExtractError<T>>[data] | null;
}

Structure

{
bounce: boolean;
bounceTime: number;
bounceType: debounce | throttle;
deepCompare: boolean | typeof isEqual;
dependencyTracking: boolean;
disabled: boolean;
initialData: ClientResponseType<Response, Error> | null;
}